﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IndyMosaic.Core.Notifications
{
    public class SubscriberAddressComparer : IEqualityComparer<Subscriber>
    {

        #region IEqualityComparer<Subscriber> Members

        public bool Equals(Subscriber x, Subscriber y)
        {
            return x.Address.Equals(y.Address);
        }

        public int GetHashCode(Subscriber obj)
        {
            return obj.Address.GetHashCode();
        }

        #endregion
    }
}
